#pragma once

#include "SoftWareNode.h"

class CUICategoryTab : public CVerticalLayoutUI, public INotifyUI
{
public:
	CUICategoryTab(CPaintManagerUI& pm);
	~CUICategoryTab(void);

	friend class CUINecessaryPage;
	friend class CUIGamePage;
	friend class CBusinessPage;
	friend class CPlayPage;
	friend class CUIBeautyPage;
	friend class CUISocialtoolPage;
	friend class CUIMotherlPage;

	void SetTabTitle(LPCTSTR lpszTitle);
	void SetTilelLayout(LPCTSTR lpszTile);

	void Init();
	void Notify(TNotifyUI& msg);
	void AddTileElement(CControlUI* pControl);
	void AddTileElement(CTileLayoutUI* pLayout, CControlUI* pControl);
private:
	CPaintManagerUI& paint_manager_;
	CTileLayoutUI* m_pTileLayout;
	list<SOFTWARENODE*>	m_listNode;
};
